<%@ page import = "java.util.Hashtable,
                   ro.xblue.translator.LanguageBean,
                   ro.gateway.aida.servlet.*,
                   ro.gateway.aida.obj.*,
                   ro.gateway.aida.srv.*,
                   ro.xblue.translator.TranslatorUtils,
                   ro.gateway.aida.admin.ActivityObjectsOptions,
                   ro.gateway.aida.admin.ActObjsOptsConst" %>
<%@ taglib uri="/WEB-INF/translator.tld" prefix="trans" %>
<%@ taglib uri="/WEB-INF/usr.tld" prefix="usr" %>
<%@ taglib uri="/WEB-INF/taglib.tld" prefix="gtw" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%
	Object screen = request.getAttribute(EditActivityServlet.PNAME_SCREEN);
	String key = (String) request.getAttribute(EditActivityServlet.PNAME_KEY);
	if ((request.getAttribute(EditActivityServlet.SIGNATURE) == null) || (key == null)) return;

	Hashtable ed_ctx = (Hashtable) request.getAttribute(EditActivityServlet.PNAME_R_CTX);
    LanguageBean lang_bean = TranslatorUtils.getCurrentLanguage(request, application);
	Activity bean = (Activity) ed_ctx.get(EditActivityServlet.PNAME_BEAN);

    String ctx = request.getContextPath();
	String title = bean.getTitle(lang_bean.language);
	if (title == null) title = "";

	AIDALocation[] locations = bean.getLocations();


	Hashtable services = (Hashtable) application.getAttribute(Constants.SERVICES);
	if (services == null) {
		System.err.println("services null... edit activity");
		return;
	}
	ICFService cfService = (ICFService) services.get(Constants.SERVICE_CF);

	String jump_to = (String) request.getAttribute(EditActivityServlet.PNAME_SHUST_1);

      // Activity Objects Options
      ActivityObjectsOptions aoo = ActivityObjectsOptions.getInstance();
%>
<% String lang=lang_bean.language; %>
<trans:initPage module="prj_pages" />
<gtw:get_errors/>
<html>
<head>
<link rel="shortcut icon" href=<html:rewrite page="/images/lpd.png"/> type="image/ico" />	
 <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> 
 <META HTTP-EQUIV="EXPIRES" CONTENT="0"> 
<title>Local Projects Database - Project Editor</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="alf.css" type="text/css">

<!--Textarea limitator-->
<SCRIPT LANGUAGE="JavaScript">

function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else
countfield.value = maxlimit - field.value.length;
}

</script>


<script language="JavaScript">
<!--
function openWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}
//-->
</script>
<STYLE>.text_searchbold {
	FONT-WEIGHT: bold; FONT-SIZE: 8pt; COLOR: #000000; FONT-STYLE: normal; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
; text-decoration: none}
.text_search {
	FONT-SIZE: 8pt; FONT-STYLE: normal; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; TEXT-DECORATION: none
}
.text {
	FONT-WEIGHT: normal; FONT-SIZE: 9pt; FONT-STYLE: normal; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; TEXT-DECORATION: none
}
.titlu {
	FONT-WEIGHT: bold; FONT-SIZE: 11pt; FONT-STYLE: normal; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; TEXT-DECORATION: none
}
A:hover {
	TEXT-DECORATION: underline
}
</STYLE>
<script language="javascript">
 function help(pageName) {
        ed_donor_orgs_win = window.open(
        "<%=ctx%>/help/UserGuide.pdf",
        "ed_fin_win", "HEIGHT=500,WIDTH=700");
    };

    function add_location(cregion_id, country_iso3, region_id, county_id, town_id, village_id) {
      var url = "<html:rewrite page="/editActivity"/>?key=<%=key%>&page=2&action=add_loc";
      if (cregion_id) {
          url += "&cregion=" + cregion_id;
      }
      if (country_iso3) {
           url += "&country=" + country_iso3;
      }
      if (region_id != -1) {
            url += "&rid=" + region_id;
      }
      if (county_id != -1) {
            url += "&jid=" + county_id;
      }
      if (town_id != -1) {
            url += "&oid=" + town_id;
      }
      if (village_id != -1) {
            url += "&lid=" + village_id;
      }
      window.location = url;
     }
     function add_sector(s_id, ss_id, sss_id) {
           var url = "<html:rewrite page="/editActivity"/>?key=<%=key%>&page=2&action=add_sec";
           if (s_id) {
                 url += "&s_id=" + s_id;
           }
           if (ss_id) {
                 url += "&ss_id=" + ss_id;
           }
           if (sss_id) {
                 url += "&sss_id=" + sss_id;
           }
           window.location = url;
     }
     function select_sector() {
           window.open("<html:rewrite page="/sectors/browser.do" />", "sector_selector",
                 "status=yes,WIDTH=700,HEIGHT=400,scrollbars=yes");
     }
     function select_category() {
           window.open("<html:rewrite page="/catsel.do" />", "sector_category",
                 "status=yes,WIDTH=700,HEIGHT=400,scrollbars=yes");
     }
     function after_cat_sel() {
           var url = "<html:rewrite page="/editActivity"/>?key=<%=key%>&page=2&action=cats_modified";
           window.location = url;
     }
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000" topmargin=0 leftmargin=0>

<jsp:include page="header.jsp" /><br><div align=center class=text_bold><trans:showPageMessage label="p.proiect00" /></div><div align=left class=text_search>&nbsp;&nbsp;&nbsp;<trans:showPageMessage label="p.proiect01" /></div>
  <table width="98%" border="0" cellspacing="1" cellpadding="4" class="text_searchBold" background=images/pixelbgtable.gif align="center">
    <tr>
      <td bgcolor="#FFFFFF" class="text_searchBold" width="30%">
          <table width="100%" cellpadding="0" cellspacing="0" border="0">
               <tr>
                    <td class="text_searchBold" width="10%">
 <trans:showPageMessage label="p.editor" />
                    </td>
                    <td>
<usr:logged_user cellClass="text_search" showLoginLink="false" />
                    </td>
               </tr>
          </table>
      </td>
      <td background=images/pixelbgtable.gif width=35%>
        <div align="center" class="textalb"><trans:showPageMessage label="p.proiect" /></div>
      </td>
      <td bgcolor="#FFFFFF" colspan=2>
        <div align="center"><a href="org/edit" class="text_searchBold"><trans:showPageMessage label="p.organiz" /></a></div>
      </td>
  </tr>
  </table>

<table width="98%" border="0" cellspacing="1" cellpadding="5" background=images/pixelbgtable.gif align="center">
  <tr background=images/pixelbgtable.gif>
    <td width="75%" class="textalb" align="center">
    <trans:showPageMessage label="p.page2" />
    </td>

    <td width="7%" class="text_searchBold">&nbsp;
      </td>
    </tr>
    <tr bgcolor="#FFFFFF">

    <td width="75%" bgcolor="#f9f9f9" valign="top" class="text_search">
        <a name="aloc" /></a>
      <p><img src=images/arrow_blue.gif hspace=4><b><trans:showPageMessage label="p2.titlu" /></b></p>
        <p><trans:showPageMessage label="p2.descriere" /></p>

	<form name="theform" method="post" action="editActivity">
      <input type="hidden" name="prj_jump" value="" />
	<input type="hidden" name="action" value="<%=EditActivityServlet.ACTION_SUBMIT%>" />
	<input type="hidden" name="key" value="<%=key%>" />
	<input type="hidden" name="page" value="2" />
	<input type="hidden" name="preview_data" value="false" />
	<!-- jts: jump to sectors -->
	<input type="hidden" name="jts" value="" />
    <input type="hidden" name="clear_old_locations" value="" />
    <script language="javascript">
      function chg_area(type) {
            // type - 1 national, 2 international
            var res_confirm = 0;
            if (type==2)
            res_confirm = confirm("<trans:showPageMessage label="p.conf_nat" hide_link="true"/>");
            else res_confirm=true;
            if (res_confirm) {
                  if (type==2) {
                        document.theform.clear_old_locations.value = 'clear';
                  } else {
                        document.theform.clear_old_locations.value = 'dont_clear';
                  }
                  document.theform.submit();
            } else {
                  <% if (bean.isInternational()) { %>
                  document.theform.is_in[0].checked = 0;
                  document.theform.is_in[1].checked = 1;
                  <% } else { %>
                  document.theform.is_in[0].checked = 1;
                  document.theform.is_in[1].checked = 0;
                  <% } %>
            }
      };
    </script>

        <p><trans:showPageMessage label="p2.is" />
          <input type="radio" name="is_in"
          value="no" <%=bean.isInternational() ? "":"checked=\"true\""%>
              onclick="javascript:chg_area(2);"

          />
          <trans:showPageMessage label="p2.national" /> &nbsp;&nbsp;&nbsp;
          <input type="radio" name="is_in"
           value="yes" <%=bean.isInternational() ? "checked=\"true\"":""%>
              onclick="javascript:chg_area(1);"
          />
          <trans:showPageMessage label="p2.international" /> </p>

      <% if (aoo.isEnabled(ActObjsOptsConst.LOCATIONS)) { %>
            <gtw:show_error label='<%=ActObjsOptsConst.LOCATIONS%>' />
        <p>
        <table width="90%" border="0" cellspacing="1" cellpadding="5" align="center" bgcolor="#CCCCCC">
          <tr bgcolor="f9f9f9">
			<td colspan="2">
			<script language="javascript">
				function select_location() {
                              <%    Country[] countries = bean.getLocationCountries();
                                    String block_country =
                                    (!bean.isInternational() && (countries != null) && (countries.length == 1)
                                       &&countries[0] != null) ?
                                    "&block_country=" + countries[0].getIso3() : "";
                                   String block_cregion =
                                      (!bean.isInternational() && (locations != null) && locations.length > 0) ? "&block_cregion=" + locations[0].getCregion_id() : "";
                              %>
                              window.open("<html:rewrite page='<%="/location/browser.do?action=new" + block_country + block_cregion%>' />",
                                    "loc_selector",
                                    "status=yes,WIDTH=600,HEIGHT=400,scrollbars=yes");
				}
                        <%
                              String selected_country_code = "";
                              if ((locations != null) && (locations.length > 0) && (!bean.isInternational())) {
                                    selected_country_code = locations[0].getCountry() != null ? locations[0].getCountry().getIso3() : "";
                              }

                              if ((!bean.isInternational()) && (locations.length < 1)
                                    && (bean.__wed_sel_country != null)) {
                                          selected_country_code = bean.__wed_sel_country;
                              }
                        %>
			</script>

                <input type="button"
                class="buton" value="<trans:showPageMessage label="p2.add" hide_link="true" />"
                onclick="javascript:select_location();">
                <%=aoo.isMandatory(ActObjsOptsConst.LOCATIONS) ? "(<font color=red>*</font>)" : ""%>
                <br>



			</td>
		</tr>
		<% int last_region = -1; %>
		<% for (int i = 0; i < locations.length; i++) { %>
		<tr bgcolor="f9f9f9">
			<td class="text_search" width="5%">
			<% if (last_region != -1 && locations[i].getCregion_id() == last_region) { %>
			<input type="checkbox" name="location_id" value="<%=i%>">
			<% } %>
			</td>
			<td class="text_search" width="95%">
			<% if (last_region == -1 || locations[i].getCregion_id() != last_region) { %>
				<b>[<%=locations[i].getCregion().getName()%>]</b>
			</td>
		</tr>
		<tr bgcolor="f9f9f9">
			<td class="text_search" width="5%">
			<input type="checkbox" name="location_id" value="<%=i%>">
			</td>
			<td class="text_search" width="95%">
			<% } %>
               <% if (locations[i].getCountry() != null) { %>
                  &nbsp;&nbsp;&nbsp;&rarr;&nbsp; [<%=locations[i].getCountry().getName()%>]
               <% } %>
			<% if (locations[i].getRegion() != null) { %>
			- <%=locations[i].getRegion().getName()%>
			<% } %>
			<% if (locations[i].getJudet() != null) { %>
			- <%=locations[i].getJudet().getName()%>
			<% } %>
			<% if (locations[i].getOras() != null) { %>
			- <%=locations[i].getOras().getName()%>
			<% } %>
			<% if (locations[i].getLocalitate() != null) { %>
			- <%=locations[i].getLocalitate().getName()%>
			<% } %>
			</td>
		</tr>
		<% last_region = locations[i].getCregion_id(); %>
		<% } %>
		<% if (locations.length > 0) { %>
		<tr bgcolor="f9f9f9">
			<td colspan="2">
			<input type="button" class="buton" value="<trans:showPageMessage label="p2.stergeLocalitati" hide_link="true" />" onClick="javascript:document.theform.action.value='del_loc';document.theform.submit();" />
			</td>
		</tr>
		<% } %>
         </table>
      <% } // IF LOCATIONS ENABLED %>

      <% if (aoo.isEnabled(ActObjsOptsConst.SECTORS)) { %>
      <gtw:show_error label='<%=ActObjsOptsConst.SECTORS%>' />
      <a name="asector" /></a>
      <p><img src=images/arrow_blue.gif hspace=4><b><trans:showPageMessage label="p2.sector" /></b></p>
        <p><trans:showPageMessage label="p2.alegeSector" />
        <%=(aoo.isMandatory(ActObjsOptsConst.SECTORS)) ? "(<font color=red>*</font>)" : ""%>
        </p>
        <p>
	<table width="90%" border="0" cellspacing="1" cellpadding="5" align="center" bgcolor="#CCCCCC">
		<%
		AIDAObjSector[] s_sectors = bean.getSectors();
		%>
		<tr bgcolor="f9f9f9">
                  <td colspan="2" class="text_search" colspan="2">
                     <input type="button" class="buton"
                     value="<trans:showPageMessage label="p2.add" hide_link="true" />"
                     onClick="javascript:select_sector();">
                  </td>
		</tr>
		<% if (s_sectors.length > 0) { %>
		<% for (int i = 0; i < s_sectors.length; i++) { %>
		<tr bgcolor="f9f9f9">
			<td class="text_search" width="10%" align="right">
			<input type="checkbox" name="sec_index" value="<%=i%>" />
			</td>
			<td class="text_search" width="90%">
				<%=s_sectors[i].getSector().getTitle().getString(lang_bean.language)%>
				<% if (s_sectors[i].getSubsector() != null) { %>
				- <%=s_sectors[i].getSubsector().getTitle().getString(lang_bean.language)%>
				<% } %>
				<% if (s_sectors[i].getSubsector1() != null) { %>
				- <%=s_sectors[i].getSubsector1().getTitle().getString(lang_bean.language)%>
				<% } %>
				<br>
			</td>
		</tr>
		<% } %>
		<tr bgcolor="f9f9f9">
			<td colspan="2" class="text_search" colspan="2">
			<input type="button" class="buton" value="<trans:showPageMessage label="p2.stergeSectoareSel" hide_link="true" />" onClick="javascript:document.theform.action.value='del_sec';document.theform.submit();">
			</td>
		</tr>
		<% } %>
	</table>
      <% } // SECTORS ENABLED %>

      <% if (aoo.isEnabled(ActObjsOptsConst.PROJECT_CATEGORIES)) { %>
      <gtw:show_error label='<%=ActObjsOptsConst.PROJECT_CATEGORIES%>' />
      <a name="acats" /></a>
      <p><img src=images/arrow_blue.gif hspace=4><b><trans:showPageMessage label="p2.category" /></b></p>
        <p><trans:showPageMessage label="p2.alegeCat" />
        <%=(aoo.isMandatory(ActObjsOptsConst.PROJECT_CATEGORIES)) ? "(<font color=red>*</font>)" : ""%>
	   </p>
        <p>
	<table width="90%" border="0" cellspacing="1" cellpadding="5" align="center" bgcolor="#CCCCCC">
		<tr bgcolor="f9f9f9">
                  <td colspan="2" class="text_search" colspan="2">
                     <input type="button" class="buton"
                     value="<trans:showPageMessage label="p2.add" hide_link="true" />"
                     onClick="javascript:select_category();">
                  </td>
		</tr>
            <%
                  Category[] cats = bean.getCategoriesArray();
                  if (cats == null) cats = new Category[0];
            %>
            <% if (cats.length > 0) { %>
            <% for (int i = 0; i < cats.length; i++) { %>
		<tr bgcolor="f9f9f9">
			<td class="text_search">
			<input type="checkbox" name="cat_index" value="<%=i%>" />
			</td>
			<td class="text_search">
                        <%=cats[i].getName().getString(lang_bean.getLanguage())%>
				<br>
			</td>
		</tr>
            <% } %>
		<tr bgcolor="f9f9f9">
                  <td colspan="2" class="text_search" colspan="2">
                        <input type="button" class="buton"
                              value="<trans:showPageMessage
                              label="p2.remove" hide_link="true" />"
                              onClick="javascript:document.theform.action.value='del_cat';this.form.submit();">
                  </td>
		</tr>
            <% } %>
	</table>
	<% } %>

      <% if (aoo.isEnabled(ActObjsOptsConst.COMPONENTS)) { %>
      <gtw:show_error label='<%=ActObjsOptsConst.COMPONENTS%>' />
        <a name="acomps"></a>
        <p><img src=images/arrow_blue.gif hspace=4><b><trans:showPageMessage label="md.comp" /></b>
        <%=(aoo.isMandatory(ActObjsOptsConst.COMPONENTS)) ? "(<font color=red>*</font>)" : ""%>
        </p>
        <div align="center">
        <table width="90%" border="0" cellspacing="1" cellpadding="5" align="center" bgcolor="#CCCCCC">
        <tr bgcolor="f9f9f9">
            <td colspan="2" class="text_search"><trans:showPageMessage label="p4.listcomp" /></td>
        </tr>
        <%
            GenericActivityProperty[] comps = bean.getComponents();
            if (comps == null) comps = new GenericActivityProperty[0];
        %>
        <input type="hidden" name="nr_comps" value="<%=comps.length%>" />
        <% for (int i = 0; i < comps.length; i++) { %>
        <tr bgcolor="f9f9f9">
            <td width="2%">
            <input type="checkbox" name="comp_id" value="<%=i%>" >
            </td>
            <td class="text_search">
            <%
            String value = comps[i].getName(lang_bean.language);
            %>
            <% if (value == null) { %>
            <% String[] avail_langs = comps[i].getAvailableLanguages();%>
            <trans:showPageMessage label="p2.otherctrn" />:
            <% for (int j = 0; j < avail_langs.length; j++) { %>
            <a class="text_search" title="<%=comps[i].getName(avail_langs[j])%>">[<%=avail_langs[j]%>]</a>
            <% } %>
            <br>
            <% } %>
            <textarea name="compname<%=i%>" cols="30" rows="2"
            onKeyDown="textCounter(this.form.compname<%=i%>,this.form.rlcompname<%=i%>,3000);"
            onKeyUp="textCounter(this.form.compname<%=i%>,this.form.rlcompname<%=i%>,3000);"
            ><%=(value==null) ? "" : value%></textarea>

             <input readonly type=text name=rlcompname<%=i%> size=3 maxlength=4 value=""> <trans:showPageMessage label="p.charactersleft" />
            </td>
        </tr>
        <% } %>
        <% if (comps.length > 0) { %>
        <tr bgcolor="f9f9f9">
            <td colspan="2">
            <input type="button" class="buton" value="<trans:showPageMessage label="p2.delselcomp" hide_link="true" />"
            onclick="javascript:document.theform.action.value='del_comps';document.theform.submit();" />
            </td>
        </tr>
        <% } %>
        <tr bgcolor="f9f9f9">
            <td colspan="2" class="text_search"><trans:showPageMessage label="p2.new_comp" /><br>
            <textarea name="comp_name" cols="30" rows="2"
            onKeyDown="textCounter(this.form.comp_name,this.form.rlcomp_name,3000);"
            onKeyUp="textCounter(this.form.comp_name,this.form.rlcomp_name,3000);"
            ></textarea>

            <input readonly type=text name=rlcomp_name size=3 maxlength=4 value=""> <trans:showPageMessage label="p.charactersleft" />

            <input type="button" class="buton" value="<trans:showPageMessage label="p2.addcomp" hide_link="true" />"
            onclick="javascript:document.theform.action.value='add_comp';document.theform.submit();" />
            </td>
        </tr>
        </table>
        <% } // COMPONENTS ENABLED %>

        </div>

        <p align="center">
          <input type="button" onclick="javascript:document.theform.submit();" value="<trans:showPageMessage label="p2.save" hide_link="true" />" class="butonsave" />

      </form>
        <p>&nbsp;</p>
      </td>
      <td width="25%" valign="top">
<!-- meniu dreapta -->
      <table width="98%" border="0" cellspacing="1" cellpadding="2" bgcolor="#000066">
        <tr>
	      <td bgcolor="#000066" align="center"><b> <span class="textalb"><trans:showPageMessage label="p.proj" />:</span>
            <span class="textalb"><font color="#F9E031"><%=title%></font></span>
            </b></td>
</tr>
<tr>
	<td background=images/pixelbgtable.gif class="textalb">
		<img src=images/arrow_white_tr.gif>
		<a
            onclick="javascript:theform.prj_jump.value='1';theform.submit();"
            style="cursor:hand;"
            class="textalb"><trans:showPageMessage label="md.identif" /></a>
	</td>
</tr>
<tr>
<td background=images/pixelbgtable.gif class="textalb">
	<img src=images/arrow_white_tr.gif>
	<a
      onclick="javascript:theform.prj_jump.value='1';theform.submit();"
      style="cursor:hand;"
      class="textalb"><trans:showPageMessage label="md.plan" /></a>
</td>
</tr>
<tr>
          <td bgcolor="#336699" class="textalb"> <img src=images/arrow_white_tr.gif> <a href="editActivity?key=<%=key%>&page=2" class="textalb"><trans:showPageMessage label="md.loc" /></a>
          </td>
</tr>
<tr>
          <td bgcolor="#336699" class="textalb"> <img src=images/arrow_white_tr.gif> <a href="editActivity?key=<%=key%>&page=2#asector" class="textalb"><trans:showPageMessage label="md.sec" /></a>
          </td>
</tr>
<tr>
          <td bgcolor="#336699" class="textalb"> <img src=images/arrow_white_tr.gif> <a href="editActivity?key=<%=key%>&page=2" class="textalb"><trans:showPageMessage label="md.comp" /></a>
          </td>
</tr>
<tr>
<td background=images/pixelbgtable.gif class="textalb">
	<img src=images/arrow_white_tr.gif>
	<a
      onclick="javascript:theform.prj_jump.value='3';theform.submit();"
      style="cursor:hand;"
      class="textalb"><trans:showPageMessage label="md.fin" /></a>
</td>
</tr>
<tr>
<td background=images/pixelbgtable.gif class="textalb">
	<img src=images/arrow_white_tr.gif>
	<a
      onclick="javascript:theform.prj_jump.value='3';theform.submit();"
      style="cursor:hand;"
      class="textalb"><trans:showPageMessage label="md.prel" /></a>
</td>
</tr>

<tr>
<td background=images/pixelbgtable.gif class="textalb">
	<img src=images/arrow_white_tr.gif>
	<a
      onclick="javascript:theform.prj_jump.value='4';theform.submit();"
      style="cursor:hand;"
      class="textalb"><trans:showPageMessage label="md.cauth" /></a>
</td>
</tr>
<tr>
<td background=images/pixelbgtable.gif class="textalb">
	<img src=images/arrow_white_tr.gif>
	<a
      onclick="javascript:theform.prj_jump.value='5';theform.submit();"
      style="cursor:hand;"
      class="textalb"><trans:showPageMessage label="md.ben" /></a>
</td>
</tr>
<tr>
<td background=images/pixelbgtable.gif class="textalb">
	<img src=images/arrow_white_tr.gif>
	<a
      onclick="javascript:theform.prj_jump.value='5';theform.submit();"
      style="cursor:hand;"
      class="textalb"><trans:showPageMessage label="md.descobj" /></a>
</td>
</tr>
<tr>
<td background=images/pixelbgtable.gif class="textalb">
	<img src=images/arrow_white_tr.gif>
	<a
      onclick="javascript:theform.prj_jump.value='6';theform.submit();"
      style="cursor:hand;"
      class="textalb"><trans:showPageMessage label="md.docl" /></a>
</td>
</tr>
<tr>
<td background=images/pixelbgtable.gif class="textalb">
	<img src=images/arrow_white_tr.gif>
	<a
      onclick="javascript:theform.prj_jump.value='6';theform.submit();"
      style="cursor:hand;"
      class="textalb"><trans:showPageMessage label="md.pinv" /></a>
</td>
</tr>
<% if (aoo.isEnabled(ActObjsOptsConst.NOTEFIELDS)) { %>
<tr>
<td background=images/pixelbgtable.gif class="textalb">
	<img src=images/arrow_white_tr.gif>
	<a
      onclick="javascript:theform.prj_jump.value='7';theform.submit();"
      style="cursor:hand;"
      class="textalb"><trans:showPageMessage label="p.notefields" /></a>
</td>
</tr>
<% } %>
<tr>
<td background=images/pixelbgtable.gif align="center">
<input type="button" name="Help" class="buton" value='<trans:showPageMessage label="p.help" hide_link="true" />'
          onClick="javascript:help('aboutPage2.htm');">
</td>
</tr>
<tr>
<td background=images/pixelbgtable.gif height="45">
<div align="center"> 
              <input type="button" onClick="javascript:document.theform.action.value='<%=EditActivityServlet.ACTION_SUBMIT%>';document.theform.preview_data.value='true';document.theform.submit();"
	value='<trans:showPageMessage label="p.pubinfo" hide_link="true" />'
	class="butonpublish"
/>
           <trans:showPageMessage label="translator.showhiddentags"/> </div>
</td>
</tr>
</table>
<!-- ziendof meniu dreapta -->
    </td>
    </tr>
  </table>
<jsp:include page="footer.jsp" />

</body>
 <HEAD> 
 <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> 
 </HEAD> 
<% if ( jump_to != null ) { %>
<script language="javascript">
    var x = "" + window.location + "";
    if (x.indexOf("#") < 0) {
        window.location = window.location + "#" + "<%=(jump_to==EditActivityServlet.PV_SHUST_1_LOCAL) ? "aloc" : "asector"%>";
    }
</script>





<% } %>
</html>
